package com.black.service.dao;

import com.black.service.entity.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ServerDao {

    @Select("select count(0) from user")
    int count();

    @Select("select * from menu where enable = 1")
    List<MenuEntity> menuList();
}
